﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition.Primitives;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Shumisen.Core.UnitTest
{
	[TestClass]
	public class ExportExtensionsTest
	{
		[TestMethod]
		public void TestGetExportTypeName()
		{
			var export = new Export("Hoge",
			                        new Dictionary<string, object> {{"ExportTypeIdentity", typeof(Hoge).FullName}},
			                        () => string.Empty);
			var typeName = export.GetExportTypeName();
			Assert.IsNotNull(typeName);
			Assert.AreEqual(typeof(Hoge), Type.GetType(typeName));
		}

		public class Hoge
		{
		}
	}
}